package com.yonyou.cyxdms.sysAuth.service.utill;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * Created by adu on 2019/8/13.
 */
public abstract class DefinedRowProcessor extends RowListenerAdapter {
    protected List<Map> result = new ArrayList<>();

    public final List<Map> getResult() {
        return result;
    }

    @Override
    public void onNext(Map<String, Object> row) {
        process(row);
        result.add(row);
    }

    abstract protected void process(Map<String, Object> row);
}
